﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Musicman.Client2
{
    static class Program
    {

        public static string UserPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal).ToString() + "\\user2.srl";
        public static bool RememberMe = false;

        public static string DOWNLOAD_PATH = @"C:\";
        public static bool USE_DOWNLAD_PATH = false;
        
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoadingForm lf = new LoadingForm();
            lf.Show();
            MainForm mf = new MainForm();
            LoginForm loginForm = new LoginForm();
            if (loginForm.ShowDialog() == DialogResult.Cancel)
            {
                mf.Close();
            }
            else
            {
                lf.Close();
                mf.AppUser = loginForm.AppUser;
                mf.SetInfo();
                mf.ShowInTaskbar = true;
                mf.WindowState = FormWindowState.Normal;
                Application.Run(mf);
            }
        }
    }
}
